<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <ul>
      <li>
        用户名：
      </li>
      <li>
        <input/>
      </li>
      <br>
      <li>
        密码：
      </li>
      <li>
        <input/>
      </li>
    </ul>
    <van-button type="warning" @click="toHome">警告按钮</van-button>
    <van-button type="danger" @click="toRegister">危险按钮</van-button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: '登录'
    }
  },
  activated () {
  },
  methods: {
    toHome () {
      this.$router.push('/Home')
    },
    toRegister () {
      this.$router.push('/Register')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
